
package com.wn.budget.code;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Data
@MappedSuperclass
public abstract class BaseEntity implements Serializable {
    @Id
    @Column(length = 36)
    public String id;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public Date createDate;
}

